home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / X / cursor / README < prev   
Encoding:
Text File  |  1994-08-02  |  972 b   |  32 lines

  1.  
  2.               ~4Dgifts/toolbox/src/exampleCode/X/cursor README
  3.  
  4.  
  5.    fontCursor.c:
  6.  
  7.    A simple example of changing a window's cursor using "Font" cursors.  
  8.    The cursors are refered to by an index which is defined in the include 
  9.    file <X11/cursorfont.h>.  Viewing cursor font definitions is possible
  10.    by using the utility `xfd' like so:  
  11.                                             xfd -fn cursor
  12.  
  13.  
  14.  
  15.    pixmapCursor.c:
  16.   
  17.    This demonstrates how in X to define a cursor for one's own application
  18.    without changing the cursor for the rest of the system.  In X11, this 
  19.    can be done using either Pixmaps, Fonts, or Glyphs.  Study especially
  20.    the functions:
  21.   
  22.        XCreateFontCursor, XCreatePixmapCursor, XCreateGlyphCursor
  23.        XDefineCursor, XUndefineCursor
  24.    
  25.    See /usr/include/X11/cursorfont.h for some predefined Font Cursors.
  26.    
  27.    These change the cursor only for the Window they're defined for.
  28.    This is an example using Pixmap cursors.
  29.  
  30.  
  31.  
  32.